package com.zerox.mapper;

import com.zerox.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
     User select(String account);
     List<User> list(@Param("startIndex") Integer startIndex,@Param("pageSize") Integer pageSize,@Param("realName") String realName,@Param("roleId") Integer roleId);
    int count(@Param("realName")String realName,@Param("roleId")Integer roleId);

    User show(int id);

    int delete(int id);

    int add(User user);

    int update(User user);
}
